package javaweb_work01.classesContrl.Service;

import javaweb_work01.classesContrl.Dao.CheckClassesDao;
import javaweb_work01.classesContrl.Entity.Classes;
import javaweb_work01.classesContrl.Factory.ClassesFactory;

import java.util.List;

public class CheckClassesService {
    //合成复用原则
    private CheckClassesDao checkClassesDao;

    public CheckClassesService(){
        this.checkClassesDao = ClassesFactory.getCheckClassesDao();
    }

    public List<Classes> checkClassesService(String className){
        return checkClassesDao.checkClasses(className);
    }
}
